package com.oren.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by IntelliJ IDEA.
 * User: wangshiwei
 * Date: 2018/7/10
 * Time: 15:56
 * describe: 表字段的自定义注解（主键）
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Id {

    //注解的默认值
    String value() default "";

    //是否是自增id
    boolean increaseId() default true;

}
